<div id="mypanel" class="mypanel span-20">
    <h1> <x:perfectTime/>，<g:loggedInUserInfo field="name"/></h1>
</div>

<g:each in="${categorysInstanceList}" var="categorys">
<div class="span-22 last mainColumn">
<div class="span-20 last titleColumn">${categorys}</div>
<g:each in="${categorys?.children}" var="children" status="i">
    <div class="panel span-10 ${(i % 2) == 0 ? 'left' : 'last'}">
        <div class="panelTop">
            <h1><g:link controller="courseware" action="list" id="${children.id}">${children}</g:link></h1>
        </div>
        <div class="panelBody">
            <ul>
            <g:each in="${Courseware.findAllByCategory(children,[max: 5])}" var="courseware">
                <li><g:link controller="courseware" action="show" id="${courseware?.id}">${courseware?.title}</g:link>(<g:formatDate date="${courseware?.createTime}" />)[${courseware?.editor}]
            </g:each>
            </ul>
        </div>
    </div>
<g:if test="${(i % 2) == 1}">
    <div class="span-20">&nbsp;</div>
</g:if>
</g:each>
</div>
</g:each>
			 